<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>经纪人评价</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #4e6ef2;
            --secondary-color: #3c5eff;
            --light-color: #f0f4ff;
            --text-color: #333;
            --text-secondary: #666;
            --text-light: #999;
            --bg-color: #fff;
            --border-color: #eee;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            color: var(--text-color);
            line-height: 1.5;
            background-color: #f5f7fa;
        }
        
        .app-container {
            max-width: 800px;
            margin: 0 auto;
            background-color: var(--bg-color);
            min-height: 100vh;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
            position: relative;
        }
        
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 16px;
            background-color: var(--bg-color);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .back-btn {
            background: none;
            border: none;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-color);
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: background-color 0.3s;
        }
        
        .back-btn:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }
        
        .page-title {
            font-size: 18px;
            font-weight: 600;
            flex: 1;
            text-align: center;
        }
        
        .main-content {
            padding: 16px;
        }
        
        .agent-info {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px;
            background-color: #f9faff;
            border-radius: 12px;
        }
        
        .agent-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
            border: 2px solid white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        .agent-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .agent-title {
            color: var(--text-secondary);
            font-size: 14px;
        }
        
        .rating-summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background-color: white;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .rating-overall {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .rating-number {
            font-size: 30px;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .rating-stars {
            color: #ffd700;
            margin: 5px 0;
        }
        
        .rating-count {
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        .rating-distribution {
            flex: 1;
            margin-left: 20px;
        }
        
        .rating-bar {
            display: flex;
            align-items: center;
            margin-bottom: 6px;
        }
        
        .rating-level {
            width: 30px;
            text-align: right;
            font-size: 12px;
            color: var(--text-secondary);
            margin-right: 8px;
        }
        
        .bar-container {
            flex: 1;
            height: 6px;
            background-color: #eee;
            border-radius: 3px;
            overflow: hidden;
        }
        
        .bar-fill {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 3px;
        }
        
        .bar-percent {
            width: 30px;
            text-align: left;
            font-size: 12px;
            color: var(--text-secondary);
            margin-left: 8px;
        }
        
        .review-filter {
            display: flex;
            margin-bottom: 15px;
            overflow-x: auto;
            padding-bottom: 5px;
            -webkit-overflow-scrolling: touch;
        }
        
        .filter-btn {
            padding: 6px 15px;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            margin-right: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            background-color: white;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.3s;
        }
        
        .filter-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .review-list {
            padding-bottom: 20px;
        }
        
        .review-card {
            background-color: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .reviewer {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .reviewer-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;
        }
        
        .reviewer-info {
            flex: 1;
        }
        
        .reviewer-name {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 2px;
        }
        
        .review-date {
            font-size: 12px;
            color: var(--text-light);
        }
        
        .reviewer-rating {
            color: #ffd700;
            font-size: 14px;
        }
        
        .review-text {
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-color);
        }
        
        .loading-indicator {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 0;
        }
        
        .loading-indicator i {
            font-size: 24px;
            color: var(--primary-color);
            animation: spin 1.5s linear infinite;
        }
        
        .loading-indicator p {
            margin-top: 10px;
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .load-more {
            display: flex;
            justify-content: center;
            margin-top: 10px;
            margin-bottom: 30px;
        }
        
        .load-more-btn {
            background-color: white;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
            border-radius: 20px;
            padding: 8px 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .load-more-btn:hover {
            background-color: var(--light-color);
        }
        
        .no-reviews {
            text-align: center;
            padding: 40px 0;
            color: var(--text-secondary);
        }
        
        .no-reviews i {
            font-size: 40px;
            color: #ddd;
            margin-bottom: 10px;
        }
        
        .no-reviews p {
            font-size: 15px;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }
    </style>
</head>
<body>
    <div class="app-container">
        <!-- 头部导航 -->
        <header class="header">
            <a href="javascript:history.back()" class="back-btn"><i class="bi bi-arrow-left"></i></a>
            <h1 class="page-title">学员评价</h1>
            <div style="width: 40px;"></div>
        </header>

        <!-- 主内容区 -->
        <main class="main-content" id="reviews-content">
            <!-- 内容将通过JavaScript动态加载 -->
            <div class="loading-indicator">
                <i class="bi bi-hourglass-split"></i>
                <p>评价加载中...</p>
            </div>
        </main>
    </div>

    <script src="../js/agent-reviews.js"></script>
</body>
</html> 